//
//@File    :	4.13_arrstruc.cpp
//@Time    :	2021/08/03 17:56:57
//@Auther  :	Sun Sheng
//@Contact :	970340843@qq.com
//@Desc    :	an array of strucures
//

#include <iostream>
struct inflatable
{
    char name[20];
    float volume;
    double price;
};
int main()
{
    using namespace std;
    inflatable guests[2] = 
    {
        {"Bambi",0.5,21.99},
        {"Godzilla",2000,565.99}
    };
    cout<<"The guests "<<guests[0].name<<" and"<<guests[1].name
        <<"\nhave a combined volume of"
        <<guests[0].volume + guests[1].volume<<"cubic feet.\n";
    system("pause");
    return 0;
}